package net.lzzy.repository;

import net.lzzy.entity.Article;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import java.util.List;

public interface ArticleRepository extends JpaRepository<Article, Integer> {
//    public List<Article>
//    public void updateArticle (Integer id, String content){
//
//    };

//    @Transactional
//    @Modifying
//    @Query(value = "INSERT INTO A(title,content,a_id") values(?1, ?2, ?3),nativeQuery = true)

}
